﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAO;
using System.Data;
using DTO;

namespace BUS
{
    public static class BenhNhanBUS
    {
        public static DataTable LayDanhSachBenhNhan(string _key)
        {
            return BenhNhanDAO.DanhSachBenhNhan(_key);
        }

        public static DataTable LayDanhSachBenhNhan_CMND(string _key)
        {
            return BenhNhanDAO.DanhSachBenhNhan_CMND(_key);
        }

        public static bool ThemBanhNhanMoi(BenhNhanDTO benhnhan)
        {
            return BenhNhanDAO.ThemBenhNhan(benhnhan); 
        }
    }
}
